Integrand size = 21, antiderivative size = 430 \[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x} \, dx=-\frac {a b x}{c e}-\frac {b^2 x \arctan (c x)}{c e}-\frac {i d (a+b \arctan (c x))^2}{c e^2}+\frac {(a+b \arctan (c x))^2}{2 c^2 e}-\frac {d x (a+b \arctan (c x))^2}{e^2}+\frac {x^2 (a+b \arctan (c x))^2}{2 e}-\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{e^3}-\frac {2 b d (a+b \arctan (c x)) \log \left (\frac {2}{1+i c x}\right )}{c e^2}+\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}+\frac {b^2 \log \left (1+c^2 x^2\right )}{2 c^2 e}+\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{e^3}-\frac {i b^2 d \operatorname {PolyLog}\left (2,1-\frac {2}{1+i c x}\right )}{c e^2}-\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 e^3}+\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 e^3} \]
[Out]
Time = 0.31 (sec) , antiderivative size = 430, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.524, Rules used = {4996, 4930, 5040, 4964, 2449, 2352, 4946, 5036, 266, 5004, 4968} \[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x} \, dx=\frac {(a+b \arctan (c x))^2}{2 c^2 e}+\frac {i b d^2 \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right ) (a+b \arctan (c x))}{e^3}-\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}-\frac {d^2 \log \left (\frac {2}{1-i c x}\right ) (a+b \arctan (c x))^2}{e^3}+\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(1-i c x) (c d+i e)}\right )}{e^3}-\frac {d x (a+b \arctan (c x))^2}{e^2}-\frac {i d (a+b \arctan (c x))^2}{c e^2}-\frac {2 b d \log \left (\frac {2}{1+i c x}\right ) (a+b \arctan (c x))}{c e^2}+\frac {x^2 (a+b \arctan (c x))^2}{2 e}-\frac {a b x}{c e}-\frac {b^2 x \arctan (c x)}{c e}+\frac {b^2 \log \left (c^2 x^2+1\right )}{2 c^2 e}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 e^3}+\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 e^3}-\frac {i b^2 d \operatorname {PolyLog}\left (2,1-\frac {2}{i c x+1}\right )}{c e^2} \]
[In]
[Out]
Rule 266
Rule 2352
Rule 2449
Rule 4930
Rule 4946
Rule 4964
Rule 4968
Rule 4996
Rule 5004
Rule 5036
Rule 5040
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {d (a+b \arctan (c x))^2}{e^2}+\frac {x (a+b \arctan (c x))^2}{e}+\frac {d^2 (a+b \arctan (c x))^2}{e^2 (d+e x)}\right ) \, dx \\ & = -\frac {d \int (a+b \arctan (c x))^2 \, dx}{e^2}+\frac {d^2 \int \frac {(a+b \arctan (c x))^2}{d+e x} \, dx}{e^2}+\frac {\int x (a+b \arctan (c x))^2 \, dx}{e} \\ & = -\frac {d x (a+b \arctan (c x))^2}{e^2}+\frac {x^2 (a+b \arctan (c x))^2}{2 e}-\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{e^3}+\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}+\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{e^3}-\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 e^3}+\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 e^3}+\frac {(2 b c d) \int \frac {x (a+b \arctan (c x))}{1+c^2 x^2} \, dx}{e^2}-\frac {(b c) \int \frac {x^2 (a+b \arctan (c x))}{1+c^2 x^2} \, dx}{e} \\ & = -\frac {i d (a+b \arctan (c x))^2}{c e^2}-\frac {d x (a+b \arctan (c x))^2}{e^2}+\frac {x^2 (a+b \arctan (c x))^2}{2 e}-\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{e^3}+\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}+\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{e^3}-\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 e^3}+\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 e^3}-\frac {(2 b d) \int \frac {a+b \arctan (c x)}{i-c x} \, dx}{e^2}-\frac {b \int (a+b \arctan (c x)) \, dx}{c e}+\frac {b \int \frac {a+b \arctan (c x)}{1+c^2 x^2} \, dx}{c e} \\ & = -\frac {a b x}{c e}-\frac {i d (a+b \arctan (c x))^2}{c e^2}+\frac {(a+b \arctan (c x))^2}{2 c^2 e}-\frac {d x (a+b \arctan (c x))^2}{e^2}+\frac {x^2 (a+b \arctan (c x))^2}{2 e}-\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{e^3}-\frac {2 b d (a+b \arctan (c x)) \log \left (\frac {2}{1+i c x}\right )}{c e^2}+\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}+\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{e^3}-\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 e^3}+\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 e^3}+\frac {\left (2 b^2 d\right ) \int \frac {\log \left (\frac {2}{1+i c x}\right )}{1+c^2 x^2} \, dx}{e^2}-\frac {b^2 \int \arctan (c x) \, dx}{c e} \\ & = -\frac {a b x}{c e}-\frac {b^2 x \arctan (c x)}{c e}-\frac {i d (a+b \arctan (c x))^2}{c e^2}+\frac {(a+b \arctan (c x))^2}{2 c^2 e}-\frac {d x (a+b \arctan (c x))^2}{e^2}+\frac {x^2 (a+b \arctan (c x))^2}{2 e}-\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{e^3}-\frac {2 b d (a+b \arctan (c x)) \log \left (\frac {2}{1+i c x}\right )}{c e^2}+\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}+\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{e^3}-\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 e^3}+\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 e^3}-\frac {\left (2 i b^2 d\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+i c x}\right )}{c e^2}+\frac {b^2 \int \frac {x}{1+c^2 x^2} \, dx}{e} \\ & = -\frac {a b x}{c e}-\frac {b^2 x \arctan (c x)}{c e}-\frac {i d (a+b \arctan (c x))^2}{c e^2}+\frac {(a+b \arctan (c x))^2}{2 c^2 e}-\frac {d x (a+b \arctan (c x))^2}{e^2}+\frac {x^2 (a+b \arctan (c x))^2}{2 e}-\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{e^3}-\frac {2 b d (a+b \arctan (c x)) \log \left (\frac {2}{1+i c x}\right )}{c e^2}+\frac {d^2 (a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}+\frac {b^2 \log \left (1+c^2 x^2\right )}{2 c^2 e}+\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{e^3}-\frac {i b^2 d \operatorname {PolyLog}\left (2,1-\frac {2}{1+i c x}\right )}{c e^2}-\frac {i b d^2 (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{e^3}-\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 e^3}+\frac {b^2 d^2 \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 e^3} \\ \end{align*}
\[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x} \, dx=\int \frac {x^2 (a+b \arctan (c x))^2}{d+e x} \, dx \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 26.05 (sec) , antiderivative size = 1710, normalized size of antiderivative = 3.98
method | result | size |
parts | \(\text {Expression too large to display}\) | \(1710\) |
derivativedivides | \(\text {Expression too large to display}\) | \(1718\) |
default | \(\text {Expression too large to display}\) | \(1718\) |
[In]
[Out]
\[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2} x^{2}}{e x + d} \,d x } \]
[In]
[Out]
\[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x} \, dx=\int \frac {x^{2} \left (a + b \operatorname {atan}{\left (c x \right )}\right )^{2}}{d + e x}\, dx \]
[In]
[Out]
\[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2} x^{2}}{e x + d} \,d x } \]
[In]
[Out]
\[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2} x^{2}}{e x + d} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x^2 (a+b \arctan (c x))^2}{d+e x} \, dx=\int \frac {x^2\,{\left (a+b\,\mathrm {atan}\left (c\,x\right )\right )}^2}{d+e\,x} \,d x \]
[In]
[Out]